home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pdox693.zip / TI1189.ASC < prev    next >
Text File  |  1992-11-12  |  12KB  |  397 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.   PRODUCT  :  Paradox                               NUMBER  :  1189
  9.   VERSION  :  4.0
  10.        OS  :  DOS
  11.      DATE  :  November 12, 1992                        PAGE  :  1/6
  12.  
  13.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  14.  
  15.  
  16.  
  17.  
  18.   This Technical Information sheet discusses common questions and
  19.   answers on Paradox 4.0 and BLObs.  For information on how to
  20.   import BLObs into Paradox fields, refer to Question 5 of this
  21.   Technical Information sheet.
  22.  
  23.      1.  Question:
  24.               What is a BLOb?  And what can I store in a BLOb
  25.          field?
  26.  
  27.          Answer:
  28.               BLOb is an acronym for Binary Large Object.  It is
  29.          the type of data that you store within a binary field in
  30.          Paradox.  The new binary field type in Paradox 4.0 allows
  31.          you to store nearly any type of data within a Paradox
  32.          table.  By using your own editor, you specify how the data
  33.          is to be treated.  Among the many possibilities are
  34.          graphics, sound, word processor documents, spreadsheets
  35.          and multimedia files.  The primary considerations when
  36.          choosing what type of data to store in a BLOb field are
  37.          what program(s) are available for handling that type of
  38.          data and how much disk space is required to store that
  39.          data.  A final consideration is that the BLOb editor you
  40.          choose should not be dependent on the file extension.  The
  41.          reason for this is that Paradox will write the BLOb to a
  42.          file named $ZMEMZ$.ZZ when you invoke your BLOb editor.
  43.  
  44.  
  45.      2.  Question:
  46.               Does Paradox have its own built-in editor for BLObs?
  47.  
  48.          Answer:
  49.               Unlike memo fields, Paradox does not have an internal
  50.          editor for BLObs.  By linking in your own editor, you have
  51.          greater flexibility and control over how your data is
  52.          interpreted and maintained.  This lets you use programs
  53.          written by people who specialize in dealing with the type
  54.          of data you choose.
  55.  
  56.               For example, if you want to store spreadsheet data in
  57.          your database, you could use Quattro Pro as your BLOb
  58.          editor.  If you want to store word-processor data in your
  59.          database, you could use WordPerfect as your BLOb editor.
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.   PRODUCT  :  Paradox                               NUMBER  :  1189
  75.   VERSION  :  4.0
  76.        OS  :  DOS
  77.      DATE  :  November 12, 1992                        PAGE  :  2/6
  78.  
  79.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  80.  
  81.  
  82.  
  83.  
  84.          If you want to store graphic images in your database, you
  85.                        1
  86.          could use VPIC  as your BLOb editor.
  87.  
  88.  
  89.      3.  Question:
  90.               How do I link a BLOb editor into Paradox?
  91.  
  92.          Answer:
  93.               A BLOb editor is linked into Paradox in the Custom
  94.          Configuration Program (CCP).  To run the CCP, you must be
  95.          in Main mode, select the System Menu by pressing Alt-
  96.          Space, select Utilities, then select Custom.  From the CCP
  97.          menu, select PAL.  From the PAL dialog Box, move the
  98.          cursor to the BLOb Editor text box, then enter the name of
  99.          your BLOb editor followed by an asterisk (*).  It is
  100.          generally recommended that you specify the full path name
  101.          of the editor, if possible, or take steps to insure that
  102.          its directory is in your DOS path.  The asterisk at the
  103.          end tells Paradox to pass the name of the file stored in
  104.          the current BLOb field to the BLOb editor.  For example,
  105.          to link Quattro Pro as the BLOb editor, you could type the
  106.          following:
  107.  
  108.               c:\qpro\q.exe *
  109.  
  110.               The final step is to save this configuration.  Choose
  111.          OK to exit the PAL dialog box, and when you return to the
  112.          CCP menu choose DO-IT! to save your changes.  If you save
  113.          to your hard disk, the changes will become effective
  114.          immediately.  If you save to the network, you will need to
  115.          exit and restart Paradox before the changes will take
  116.          effect.  Paradox supports one BLOb editor at a time.  For
  117.          additional information on linking a BLOb editor, refer to
  118.          Chapter 15 of the Getting Started Guide.
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.   PRODUCT  :  Paradox                               NUMBER  :  1189
  141.   VERSION  :  4.0
  142.        OS  :  DOS
  143.      DATE  :  November 12, 1992                        PAGE  :  3/6
  144.  
  145.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  146.  
  147.  
  148.  
  149.  
  150.      4.  Question:
  151.                                                               2
  152.               Can I use a Microsoft Windows, Desqview, or OS/2
  153.          BLOb editor as my BLOb editor if I am running Paradox in
  154.          that environment?
  155.  
  156.          Answer:
  157.               Whatever you define as your BLOb editor must be
  158.          capable of running from DOS.  Applications written
  159.          specifically for these environments generally cannot be
  160.          started from DOS alone.  Because of this, most Microsoft
  161.          Windows, Desqview or OS/2 BLOb editors will not work, even
  162.          if you are running Paradox in that environment.
  163.  
  164.  
  165.      5.  Question:
  166.               How can I import data into my BLOb field?
  167.  
  168.          Answer:
  169.               There are three methods for importing BLObs into
  170.          Paradox fields: interactively or with a PAL script or
  171.          miniscript.  For all methods, it is first necessary to set
  172.          up the database that will hold the data by either
  173.          designing a new database or modifying an existing database
  174.          to contain a BLOb field type.  Link in your BLOb editor
  175.          through the Custom Configuration Program (see Question 4
  176.          of this Technical Information sheet).
  177.  
  178.          There are two options for the next step:
  179.  
  180.              o  The exact details of the first option depend in
  181.                 part on what you've defined as your BLOb editor.
  182.                 Interactively, go into CoEdit mode, go into
  183.                 fieldview <Ctrl-F> in the BLOb field, insert the
  184.                 binary file into the $ZMEMZ$.ZZ file and save the
  185.                 file as $ZMEMZ$.ZZ in your private directory (if
  186.                 you save the data to this file in any other
  187.                 directory, Paradox will not bring it into the
  188.                 field).  Paradox automatically reads this file back
  189.                 into the BLOb field upon returning to Paradox when
  190.                 you exit your BLOb editor and will display the word
  191.                 BLOb in the BLOb field.
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.   PRODUCT  :  Paradox                               NUMBER  :  1189
  207.   VERSION  :  4.0
  208.        OS  :  DOS
  209.      DATE  :  November 12, 1992                        PAGE  :  4/6
  210.  
  211.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  212.  
  213.  
  214.  
  215.  
  216.                 For example, if you are using Quattro Pro as your
  217.                 BLOb editor, when you invoke fieldview in a BLOb
  218.                 field, Quattro Pro will display an empty
  219.                 spreadsheet with the name $ZMEMZ$.ZZ.  To insert an
  220.                 existing binary file (in this case a spreadsheet)
  221.                 into the file $ZMEMZ$.ZZ, perform the following:
  222.                 Tools | Combine | Copy | File , type in the name of
  223.                 an existing spreadsheet that you want to write into
  224.                 the BLOb field, and then perform a File | Save to
  225.                 save the file $ZMEMZ$.ZZ in your private directory.
  226.                 To return to Paradox select File | Exit.  The BLOb
  227.                 field that your cursor is on should now display the
  228.                 word BLOb.
  229.  
  230.                 For some BLOb editors, especially if they only
  231.                 allow viewing of the BLOb, this method will not
  232.                 work.  If this is the case, you must use the second
  233.                 method.
  234.  
  235.              o  The second method for reading files into Paradox is
  236.                 the FILEREAD or FILEREAD BINARY (the BINARY option
  237.                 is strongly recommended for reading data into BLOb
  238.                 fields).  Using the BINARY option suppresses
  239.                 conversion of carriage return/newline pairs to
  240.                 newlines and is slightly faster.  For example we
  241.                 could use:
  242.  
  243.                 FILEREAD BINARY "BLOb.xxx" TO BLOb
  244.                 [BLObfield] = BLOb
  245.  
  246.                 where BLOb.xxx is your existing binary file that we
  247.                 want to import, BLOb is the name of the variable we
  248.                 are assigning it to temporarily, and BLObfield is
  249.                 the name of field that we are reading the file
  250.                 into.  The maximum size of binary file you can
  251.                 import is 64 megabytes.
  252.  
  253.                 For additional information on the FILEREAD command,
  254.                 refer to the PAL Reference Guide.
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.   PRODUCT  :  Paradox                               NUMBER  :  1189
  273.   VERSION  :  4.0
  274.        OS  :  DOS
  275.      DATE  :  November 12, 1992                        PAGE  :  5/6
  276.  
  277.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  278.  
  279.  
  280.  
  281.  
  282.      6.  Question:
  283.               How much data can I store in a binary field in
  284.          Paradox?
  285.  
  286.          Answer:
  287.               Each field in each record can hold up to 64 megabytes
  288.          worth of data, up to a maximum of 4 gigabytes per table.
  289.  
  290.  
  291.      7.  Question:
  292.               I have BLOb data that I want users of my database to
  293.          be able to view, but not be able to change.  Is it
  294.          necessary that I use Edit or CoEdit mode?
  295.  
  296.          Answer:
  297.               It is necessary to use Edit or CoEdit mode to use
  298.          fieldview <Ctrl-F> to access the data, but it is not
  299.          necessary that the program that you've defined as your
  300.          BLOb editor be capable of making changes to that data.  It
  301.          is sufficient to have a program that is only capable of
  302.          presenting the BLOb.  (The exact implementation of this is
  303.          highly dependent on what kind of data you store in your
  304.          BLOb field and what programs are available to handle this
  305.          type of data).
  306.  
  307.  
  308.      8.  Question:
  309.               What other restrictions are there on BLOb fields that
  310.          I should keep in mind?
  311.  
  312.          Answer:
  313.               While it is possible to store many types of data in
  314.          BLOb fields, Paradox only directly supports one BLOb
  315.          editor at a time.  You can change your BLOb editor at any
  316.          time through the Custom Configuration Program.
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.   PRODUCT  :  Paradox                               NUMBER  :  1189
  339.   VERSION  :  4.0
  340.        OS  :  DOS
  341.      DATE  :  November 12, 1992                        PAGE  :  6/6
  342.  
  343.     TITLE  :  Common Questions & Answers: Paradox 4.0 & BLObs
  344.  
  345.  
  346.  
  347.  
  348.      9.  Question:
  349.               Can I use BLObs to place pictures on my forms and
  350.          reports?
  351.  
  352.          Answer:
  353.               BLObs may not be placed on forms or reports.  Paradox
  354.          is a text based environment, and thus graphics such as
  355.          pictures are not compatible with this environment.  While
  356.          BLOb fields may not be used to place graphics on forms,
  357.          BLOb fields can be placed on forms.  When you view your
  358.          table in form view, the BLOb field will display with the
  359.          word 'BLOb' if there is data in that field and will be
  360.          blank if the field is empty.  The data can then be viewed
  361.          by invoking fieldview <Ctrl-F>.
  362.  
  363.  
  364.   [1] WordPerfect copyright WordPerfect Corp., VPIC copyright Bob
  365.   Montgomery
  366.  
  367.   [2] Microsoft Windows copyright Microsoft Corporation, Desqview
  368.   copyright Quarterdeck Office Systems, Inc., OS/2 copyright IBM
  369.   Corporation.
  370.  
  371.   DISCLAIMER: You have the right to use this technical information
  372.   subject to the terms of the No-Nonsense License Statement that
  373.   you received with the Borland product to which this information
  374.   pertains.
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394.  
  395.  
  396.  
  397.